package view;

import java.util.Observable;
import java.util.Observer;

import model.WheatherData;

public class CurrentConditionDisplay implements Observer, Display
{
	WheatherData wD;

	
	public CurrentConditionDisplay(Observable o) 
	{
		o.addObserver(this);
	}

	@Override
	public void display() 
	{
		System.out.println(wD);
	}

	@Override
	public void update(Observable o, Object arg) 
	{
		wD = (WheatherData) o;
		display();
	}


}
